<!DOCTYPE html>
<html lang="zh-cmn-Hans-CN">

<head>
    <meta charset="utf-8">
    <!-- 优先使用IE最新版本和 Chrome -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <!-- 360 浏览器内核控制 -->
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <!-- 控制手机和平板的显示比例 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- SEO 三项优化 -->
    <!-- 页面描述 -->
    <meta name="description" content="" />
    <!-- 页面关键词 -->
    <meta name="keywords" content="" />
    <!-- 页面标题 -->
    <title>教学工作小工具</title>
    <!-- Bootstrap core CSS -->
    <link href="<?php echo base_url();?>application/views/bootstrap/css/bootstrap.css" rel="stylesheet">
    <!-- 自定义样式表 -->
    <link href="<?php echo base_url() ?>application/views/css/main.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <div id="container">
        <header class="navbar navbar-fixed-top">
            <div class="container">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="<?php echo site_url();?>">首页</a>
                </div>
                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li><a href="<?php echo site_url('teachinglog'); ?>">教学日志</a></li>
                    </ul>
                    <ul class="nav navbar-nav">
                        <li><a href="<?php echo site_url('latex2md'); ?>">latex2md</a></li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="<?php echo site_url('/user/register_form/');?>">注册</a></li>
                        <?php if(!isset($this->session->userdata['email'])): ?>
                        <li><a href="<?php echo site_url('/user/login_form/'); ?>">登录</a></li>
                        <?php else: ?>
                        <li><a href="<?php echo site_url('/user/logout/'); ?>"><?php echo $this->session->userdata['email']; ?></a></li>
                        <?php endif; ?>
                    </ul>
                </div>
                <!-- /.navbar-collapse -->
            </div>
            <!-- /.container -->
        </header>
    </div>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <div class='container footer'>
        <p class="text-center">民大助手</p>
    </div>
    <script src="<?php echo base_url(); ?>application/views/jQuery/jquery-3.2.1.min.js"></script>
    <script src="<?php echo base_url(); ?>application/views/bootstrap/js/bootstrap.js"></script>
</body>

</html>